#include <gtest\gtest.h>
#include "ResidentStudent.h"

TEST(ResidentStudentTest, testToString) {
    ResidentStudent student("Clark", "Kent", "1234", true, 100.00);
    ASSERT_EQ("\nFirst name:\t\tClark\nLast name:\t\tKent\n"
            "Student ID:\t\t1234\nTuition Amount:\t\t$0.00\n\n",
            student.toString());
}

TEST(ResidentStudentTest, testComputeTuition) 
{
    ResidentStudent student("Tristan", "Caruso", "1234", true, 300.00);
    Course course("Math", 3, "Monday", "1:00 PM");  
    student.enrollCourse(course);
    student.computeTuition();
    ASSERT_EQ(900.0, student.getTuitionAmount());
}